/**
 * 
 */
package com.yonyou.iuap.shell.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.yonyou.iuap.shell.dao.KmKnowledgeStatisticsEntityDao;
import com.yonyou.iuap.shell.entity.KmKnowledgeStatisticsEntity;
import com.yonyou.iuap.shell.pub.IShellDaoEnum;
import com.yonyou.iuap.shell.pub.IShellServiceEnum;
import com.yonyou.iuap.shell.pub.ResultDto;
import com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService;

/**
 * @author ganchj
 *
 */
@Service(IShellServiceEnum.Shell_Service_Knowledge_Statistics)
public class KnowledgeStatisticsServiceImpl implements
		IKnowledgeStatisticsService {
	@Autowired
	@Qualifier(IShellDaoEnum.Shell_Dao_Knowledge_statistics)
	private KmKnowledgeStatisticsEntityDao<KmKnowledgeStatisticsEntity> knowledgeStatisticsDao;
	/* （非 Javadoc）
	 * @see com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService#selectByPrimaryKey(java.lang.String)
	 */
	public ResultDto selectByPrimaryKey(String param) {
		ResultDto result=new ResultDto();
		result.setData(knowledgeStatisticsDao.selectByPrimaryKey(param));
		result.setMessage("查询成功！");
		result.setStatus(0);
		return result;
	}

	/* （非 Javadoc）
	 * @see com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService#selectAll()
	 */
	public ResultDto selectAll() {
		// TODO 自动生成的方法存根
		return null;
	}

	/* （非 Javadoc）
	 * @see com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService#selectByCondition(java.lang.String)
	 */
	public ResultDto selectByCondition(String param) {
		// TODO 自动生成的方法存根
		return null;
	}

	/* （非 Javadoc）
	 * @see com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService#deleteByPrimaryKey(java.lang.String)
	 */
	public ResultDto deleteByPrimaryKey(String param) {
		// TODO 自动生成的方法存根
		return null;
	}

	/* （非 Javadoc）
	 * @see com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService#insertSelective(com.yonyou.iuap.shell.entity.KmKnowledgeStatisticsEntity)
	 */
	public ResultDto insertSelective(KmKnowledgeStatisticsEntity param) {
		ResultDto result=new ResultDto();
		if(knowledgeStatisticsDao.insertSelective(param)>0){
			result.setStatus(0);
			result.setMessage("新增成功！");
		}else{
			result.setStatus(-1);
			result.setMessage("新增失败！");
		}
		return result;
	}

	/* （非 Javadoc）
	 * @see com.yonyou.iuap.shell.service.intf.IKnowledgeStatisticsService#updateByPrimaryKeySelective(com.yonyou.iuap.shell.entity.KmKnowledgeStatisticsEntity)
	 */
	public ResultDto updateByPrimaryKeySelective(
			KmKnowledgeStatisticsEntity param) {
		// TODO 自动生成的方法存根
		return null;
	}

}
